class Dog{
    public String name;
    public String color;

    public void bake(){
        System.out.println(name+"汪汪叫！");
    }
}
public class Test2 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "来福";
        dog.color = "灰色";
        System.out.println(dog.name);
        System.out.println(dog.color);
        dog.bake();
    }


}
